package com.dy.lock.screen.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dy.lock.screen.dao.GoodsDao;
import com.dy.lock.screen.pojo.GoodsInfo;
import com.dy.lock.screen.scoket.Head;
import com.dy.lock.screen.service.GoodsService;

@Service("goodsService")
public class GoodsServiceImpl implements GoodsService {

	@Resource(name = "goodsDao")
	private GoodsDao goodsDao;

	@Override
	public List<GoodsInfo> queryPage(Map<String, Object> para, Head head) {
		List<GoodsInfo> list = this.goodsDao.queryT(para);
		return list;
	}

	@Override
	public GoodsInfo queryByPrimaryKey(String goodsid) {
		return this.goodsDao.queryByPrimaryKey(goodsid);
	}

	@Override
	public GoodsInfo queryByOrderId(String orderId) {
		// TODO Auto-generated method stub
		return this.goodsDao.queryByOrderId(orderId);
	}

	@Override
	public int update(GoodsInfo gi) {
		// TODO Auto-generated method stub
		return this.goodsDao.update(gi);
	}

}
